STEP 11: Let's try adding some actions inside the loop like we practiced!

  • Drag Turn Left from and drop it at the bottom of your for loop, INSIDE the loop.
  • Replace the integer in the .turn_left() command with the variable angle.
  • Change the integer in .move_forward() to 200.
  • Click Run and watch the hedgehog draw a star!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)